package com.tiancheng.trade.merchant.vo.product;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;


/**
 * 商品
 */
@Data
public class FindProductPageListVO implements Serializable {

    private Long id;
    /**
     * 商户名称
     */
    private String merchantName;
    /**
     * 商户编码/商户ID
     */
    private String merchantCode;
    /**
     * 产品编码/产品ID
     */
    private String productCode;
    /**
     * 产品名称
     */
    private String productName;
    /**
     * 产品详情
     */
    private String productDetail;
    /**
     * 业务场景
     */
    private String scenario;
    /**
     * 业务侧产品编码
     */
    private String productCodeBusiness;
    /**
     * 支付渠道编码
     */
    private String paymentChannelCode;
    /**
     * 创建日期
     */
    private String createdDt;

    private Integer currentPage;

    private Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize) {
            pageSize = 10;
        }
        return pageSize;
    }

    public String getMerchantCode() {
        if (StringUtils.isNotEmpty(merchantCode)) {
            merchantCode = merchantCode.trim();
        }
        return merchantCode;
    }

    public String getMerchantName() {
        if (StringUtils.isNotEmpty(merchantName)) {
            merchantName = merchantName.trim();
        }
        return merchantName;
    }

    public String getProductName() {
        if (StringUtils.isNotEmpty(productName)) {
            productName = productName.trim();
        }
        return productName;
    }

    public String getProductCode() {
        if (StringUtils.isNotEmpty(productCode)) {
            productCode = productCode.trim();
        }
        return productCode;
    }

    public String getProductCodeBusiness() {
        if (StringUtils.isNotEmpty(productCodeBusiness)) {
            productCodeBusiness = productCodeBusiness.trim();
        }
        return productCodeBusiness;
    }

}
